package com.lxj.stream;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

/**
 * BufferStream
 */
public class BufferStream {

    public static void main(String[] args) {
        String file_path = "f:/xyz/abc/def/lol2.txt";
        File f = new File(file_path);
        
        try {
            FileReader fr = new FileReader(f);
            BufferedReader br = new BufferedReader(fr);
            while (true) {
                String line = br.readLine();
                if(null == line) {
                    break;
                }

                System.out.println(line);
            }

            br.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}